package com.norman.sorry.core.pieces;

import java.awt.Color;

/**
 * A helper class for creating a concrete version of a game piece.
 * 
 * @author Brian Norman
 * @version 0.0.1 beta
 * @since 0.0.1 beta
 */
public abstract class AbstractPiece implements IPiece {

   /**
    * The color of this game piece.
    */
   protected Color color;

   /**
    * Creates a new game piece with the specified color.
    * 
    * @param color
    *           the color of this game piece
    */
   public AbstractPiece(Color color) {
      this.color = color;
   }

   /**
    * {@inheritDoc}
    * 
    * @see com.norman.sorry.core.pieces.IPiece#getColor()
    */
   @Override
   public Color getColor() {
      return color;
   }

}
